package com.dlc.yunguang.model;

import com.dlc.yunguang.model.intfc.MoveProduct;

/**
 * Created by John on 2017/7/20.
 */

public class MoveProductImpl implements MoveProduct {

    private String brand;
    private String category;
    private int length;
    private int width;
    private int amount;
    private boolean selected;

    public MoveProductImpl() {
    }

    public MoveProductImpl(String brand, String category, int length, int width, int amount) {
        this.brand = brand;
        this.category = category;
        this.length = length;
        this.width = width;
        this.amount = amount;
    }

    @Override
    public String getName() {
        return brand + " " + category + " " + length + "*" + width;
    }

    @Override
    public int getAmount() {
        return amount;
    }

    @Override
    public boolean isSelected() {
        return selected;
    }

    @Override
    public void setSelected(boolean selected) {
        this.selected = selected;
    }
}
